package com.qf.api.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

/**
 * 文章所属分类关联表
 * @TableName t_article_category
 */
@TableName(value ="t_article_category")
@Data
@Builder
public class ArticleCategoryEntity {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    private Long articleId;

    /**
     * 分类id
     */
    @TableField(value = "category_id")
    private Long categoryId;
}